.chatcontent {
    .allagent:last-child {
        margin-bottom: 10px;
    }

    .loading {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .agent_img {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-end;

        >div {
            height: 150px;
            border-radius: 15px;
            overflow: hidden;
        }

        .word {
            width: 200px;
            height: 100px !important;
            background-color: #fafafa;
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-radius: 15px !important;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
            padding: 0px 25px;

            .wordname {
                max-width: 80px;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                overflow: hidden;
                text-overflow: ellipsis;
                word-wrap: break-word;
                line-height: 21px;
                font-weight: 700;
            }
        }
    }

    .agentContentItem {
        display: flex;
        margin: 15px 0px;
        flex-wrap: nowrap;

        >img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: contain;
        }

        .agentContentTxt {
            min-height: 46px;
            border-radius: 10px;
            padding: 15px;
            font-size: 14px;
            // max-width: 635px;

            .message_icon {
                width: 100%;
                text-align: right;
                font-size: 16px;
                letter-spacing: 10px;
                position: relative;
                top: 10px;
            }

            .message_icon>* {
                margin: 0 10px;
            }
        }
    }


    .agentleft {
        .prompt {
            display: flex;
            flex-wrap: wrap;
            margin-top: 5px;

            .promptitem {
                // box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
                border: 1px solid #dcdcdc;
                padding: 5px 10px;
                color: #155eef;
                margin: 5px;
                border-radius: 10px;
                background-color: rgb(255, 255, 255);
                cursor: pointer;
            }
        }

        >img {
            margin-right: 15px;
            object-fit: contain;
        }

    }

    .agentright {
        flex-direction: row-reverse;

        >img {
            margin-left: 15px;
            object-fit: contain;
        }

        .agentContentTxt {
            background-color: #eff6ff;
        }

    }

    .reasoningbutton {
        width: 180px;
        height: 30px;
        border-radius: 8px;
        font-size: 12px;
        background-color: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0px 10px;
        margin-bottom: 10px;

    }

    .reasoning {
        padding-left: 5px;
        border-left: 1.5px solid #e5e5e5;
        margin-bottom: 10px;
        color: #949494;
        font-size: 13px;
        font-weight: 100;
    }


    .icon {
        cursor: pointer;
        transition: transform 0.3s, color 0.3s;
    }


    .icon:hover {
        color: #ff4081;
    }

    .like:hover {
        color: green;
    }

    .icon:active {
        transform: scale(1.2);
    }

    @keyframes heartAnimation {
        0% {
            opacity: 0;
            transform: translateX(-50%) scale(0.5);
        }

        100% {
            opacity: 1;
            transform: translateX(-50%) scale(1);
        }
    }

}

@media (max-width:667px) {
    .chatcontent {
        .reasoningbutton {
            width: 120px;
        }


        .agentleft {
            .prompt {
                .promptitem {
                    font-size: 11px; 
                }
            }
        }

        .reasoning {
            font-size: 13px;
        }

        .agent_img {
            display: flex;
            flex-direction: column-reverse;
            align-items: flex-end;

            >div {
                height: 120px;
                border-radius: 15px;
                overflow: hidden;
            }

            .word {
                width: 165px;
                height: 80px !important;
                padding: 0 20px;

                .wordname {
                    width: 70px;
                    font-size: 13px;
                }
            }
        }

    }

}